﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

/// <summary>
///CWSD 的摘要说明
/// </summary>
public class CWSD
{
  public CWSD()
  {
    //
    //TODO: 在此处添加构造函数逻辑
    //
  }

  public static bool GetSDZT(string ic)
  {
    bool flag = false;
    string sSql = "select * from sys_cwsd where rq=(select max(rq) from sys_cwsd where khlx='" + ic + "')";
    //SqlParameter[] cmdParams = { new SqlParameter("@0", SqlDbType.VarChar, 10), new SqlParameter("@1", SqlDbType.VarChar, 10) };
    //cmdParams[0].Value = SysManage.Get_User;
    //cmdParams[1].Value = sQX;
    SqlDataReader dr = DbHelperSQL.ExecuteReader(sSql);
    if (dr.Read())
    {
      flag = dr["sdzt"].ToString() == "1" ? true : false;
    }
    dr.Close();
    return flag;
  }
}